<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>扫码支付 - 一指赢商城</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <script src="http://400tcc.cn./Public/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <style>
        body {
            background-color: #29aae3;
        }
        p {
            line-height:24px;
            margin:0px;
            padding:0px;
        }
        a {
			height: 35px;
			line-height: 35px;
			margin-top: 20px;
			text-align: center;
			font-size: 16px;
			display: block;
			border-radius: 6px;
			padding: 1% 3%;
			background-color: #0688e9;
			color: #fff;
			text-decoration:none;
        }
    </style>
</head>
<body>
<div id="msg" style="background-color:#ffffff;margin:5%;width:90%;float:left;">
    <span style="color:red;margin-left:20px;display:block;font-size:14px;margin-bottom:50px;margin-top:50px;">
		<p>具体流程：</p>
		<p>点击手机右上角选择用浏览器打开，然后进行支付</p>
	</span>
</div>
<div id="click_pay" style="width:100%;float:left;"><a href="<?php echo ($pay_url); ?>">点击支付</a></div>
<script>
//判断是否在微信打开，显示隐藏按钮

	function is_weixn(){
    var ua = navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i)=="micromessenger") {
		$("#click_pay").css("display","none");
        return true;
    } else {
		$("#msg").css("display","none");
		$("#click_pay").css("display","block");
       // return false;
		
		
//测试开始
 var browser = {
        versions: function () {
          var u = navigator.userAgent, app = navigator.appVersion;
          return { // 移动终端浏览器版本信息
            trident: u.indexOf('Trident') > -1, //IE内核
            presto: u.indexOf('Presto') > -1, //opera内核
            webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
            mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
            android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
            iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
            iPad: u.indexOf('iPad') > -1, //是否iPad
            webApp: u.indexOf('Safari') == -1 //是否web应yong程序，没有头部与底部
          };
        }(),
        language: (navigator.browserLanguage || navigator.language).toLowerCase()
      };

      var isIphone = /iPhone|iPad|iPod/i.test(navigator.userAgent);
      //console.log(isIphone+'123');
      //console.log(browser.versions.mobile);
	 // alert(browser.versions.android);

//测试结束
		
		
		
    }
}
is_weixn();


//测试开始
/*var bForcepc = fGetQuery("dv") == "pc"; 
function fBrowserRedirect(){ 
 var sUserAgent = navigator.userAgent.toLowerCase(); 
 var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; 
 var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; 
 var bIsMidp = sUserAgent.match(/midp/i) == "midp"; 
 var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; 
 var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; 
 var bIsAndroid = sUserAgent.match(/android/i) == "android"; 
 var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; 
 var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; 
 if(bIsIpad){ 
 var sUrl = location.href; 
 if(!bForcepc){ 
  window.location.href = "http://m.jb51.net/?ipad"; 
 } 
 } 
 if(bIsIphoneOs || bIsAndroid){ 
 var sUrl = location.href; 
 if(!bForcepc){ 
  window.location.href = "http://m.jb51.net/?iphone"; 
 } 
 } 
 if(bIsMidp||bIsUc7||bIsUc||bIsCE||bIsWM){ 
 var sUrl = location.href; 
 if(!bForcepc){ 
  window.location.href = "http://m.jb51.net/"; 
 } 
 } 
} 
function fGetQuery(name) 
function fShowVerBlock(){ 
 if(bForcepc){ 
 document.getElementById("dv_block").style.display = "block"; 
 } 
 else{ 
 document.getElementById("ad_block").style.display = "block"; 
 } 
} 
fBrowserRedirect(); */

//测试结束


</script>
</body>

</html>